package com.hugeyurt.service;

import com.hugeyurt.po.Course;
import com.hugeyurt.po.EnrollCourse;


public interface CourseService
{
    /*
    public void secondKill() {
        synchronized (this) {
            if (CourseDao.getCount() > 0) {
                System.out.println("恭喜你可以选课");
                CourseDao.setCount(CourseDao.getCount() - 1);
            } else
                System.out.println("抱歉，没有名额了");
        }
    }*/

    public Course getCourse(Integer cno);
    public Boolean saveEnrollCourse(EnrollCourse enrollCourse);

    public Boolean secondKill(String sno,Integer cno);

    public Boolean initSkillEvent();

}
